package system

import (
	"github.com/gin-gonic/gin"
	"server/api"
)

type PublicRouter struct{}

func (u *MenuRouter) InitPublicRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
	publicRouter := Router.Group("public")
	publicApi := api.ApiGroupApp.SystemApiGroup.PublicApi
	{
		uploadRouter := publicRouter.Group("upload")
		uploadRouter.POST("verify", publicApi.UploadApi.VerifyUpload)
		uploadRouter.POST("file", publicApi.UploadApi.UploadChunk)
		uploadRouter.POST("merge", publicApi.UploadApi.MergeChunks)
	}
	return publicRouter
}
